@import 'color';
@import 'font';

.cart-list {
  border-top: 1px solid $color-grey-3;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  background: $color-grey-1;
  align-items: center;
  height: 10rem;
  min-height: 10rem;
}

.goods-img {
  min-width: 8rem;
  max-width: 8rem;
  max-height: 8rem;
  margin: {
    right: 0.5rem;
  }
}

.goods-main {
  width: 100%;
  .name {
    font-size: $font-size-12;
    font-weight: 700
  }
  .price {
    font-size: $font-size-12;
    font-weight: 700;
    color: $color-red-1;
  }
  .bottom {
    display: flex;
    justify-content: space-between;
  }

  .delete-btn{
    border: none;
    background: $color-red-1;
    color: $color-grey-1;
    min-width: 4rem;
    height: 2.5rem;
    font-size: $font-size-13;
  }
  .orange {
    display: inline-block;
    background: #FF8C00;
    line-height: 120%;
    padding: 2px 4px;
    color: #fff;
    border-radius: 4px;
    font-size: 1.2rem;
  }
}

.goods-radio {
  min-width: 2rem;
  height: 2rem;
  margin: {
    top: 0;
    left: -0.25rem;
    right: 0.75rem;
    bottom: 0;
  }
  border: 1px solid $color-grey-3;
  background: $color-grey-1;
}

.goods-id {
  color: $color-grey-5;
  font-size: $font-size-12;
}

.btn-num {
  display: flex;
  justify-content: center;
  align-items: center;
  background: $color-grey-1;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  border: 1px solid $color-grey-3;
  font-size: $font-size-16;
  font-weight: 300;
  &.jia {
    position: absolute;
    right: 0;
    top: 0;
  }
  &.jian {
    position: absolute;
    right: 4.6rem;
    top: 0;
  }
}

.input-num {
  width: 3rem;
  border: {
    top: 1px solid $color-grey-3;
    bottom: 1px solid $color-grey-3;
    left: 0;
    right: 0;
  }
  line-height: 2.5rem;
  height: 2.5rem;
  margin: 0;
  position: absolute;
  right: 2rem;
  top: 0;
  padding: 0 0.3rem;
  font-size: $font-size-10;
  text-align: center;
}

.num {
  position: relative;
  width: 6.6rem;
}

.cart-footer {
  position: fixed;
  bottom: 44px;
  &.bottom{
    bottom: 0px;
  }
  left: 0;
  right: 0;
  z-index: 10;
  height: 3.5rem;
  display: flex;
}
.cart-top {
  position: fixed;
  top: .62rem;
  left: 0;
  right: 0;
  z-index: 10;
  height: 3.5rem;
  display: flex;
  border-bottom: 1px solid #ddd;
}

.cart-main {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  font-size: $font-size-12;
  background: $color-grey-1;
  border: {
    top: 1px solid $color-grey-3;
  }
  label {
    display: flex;
    align-items: center;
    input {
      width: 2rem;
      height: 2rem;
      margin: {
        top: 0;
        left: -0.25rem;
        right: 0.75rem;
        bottom: 0;
      }
      border: 1px solid $color-grey-3;
      background: $color-grey-1;
    }
  }
}

.cart-pay {
  border: none;
  background: $color-red-1;
  color: $color-grey-1;
  min-width: 6rem;
  height: 3.5rem;
  font-size: $font-size-13;
}